package http;

import org.xutils.common.Callback.CommonCallback;

/**
 * 
 * @author shiqing  2015-6-12
 *
 * @param <ResultType>
 */
public class XRequestCallBack<ResultType> implements CommonCallback<ResultType> {

	//请求码
	private int requestCode;
	
	public XRequestCallBack(int requestCode){
		super();
		this.requestCode = requestCode;
	}
	
	/**
	 * 获取当前请求码
	 * @return
	 */
	public int getRequestCode(){
		return requestCode;
	}

	@Override
	public void onSuccess(ResultType result) {

	}

	@Override
	public void onError(Throwable ex, boolean isOnCallback) {

	}

	@Override
	public void onCancelled(CancelledException cex) {

	}

	@Override
	public void onFinished() {

	}
}
